<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title>Document</title>
    <style>

    </style>
</head>
<body>

</body>
<script>
    console.log('start')

    setTimeout(() => {
    console.log('setTimeout')
    }, 0)

    new Promise((resolve) => {
    console.log('promise')
    resolve()
    })
    .then(() => {
        console.log('then1')
    })
    .then(() => {
        console.log('then2')
    })

    console.log('end')
</script>
</html>